// linked pages
struct linkpgs {
    struct linkpgs *next;
};

#define pushlinkpg(head, pgptr)(pgptr->next=head.next,head.next=pgptr) // 一定成功
#define poplinkpg(head, pgptr)(head.next == 0?0:(pgptr=head.next,head.next=pgptr->next,1))
